import {createRouter , createWebHistory} from 'vue-router'
import Goods from '../views/Goods/Goods.vue'
import Home from '../views/Home/Home.vue'
import Layout from '../views/Layout/index.vue'

const routes = [
    {
        path:'/Home',
        name:'home',
        component:Home
    },
    {
        path:'/Goods',
        name:'goods',
        component:Goods
    },
    {
        path:'/Layout',
        name:'layout',
        component:Layout
    }
]

const router = createRouter({
    history:createWebHistory(process.env.BASE_URL),
    routes
})

export default router